package com.app.utils.redis;

/**
 * Description
 * Created by 王伟
 * Date create on 16:06 2019/11/21.
 */
public class KeyParam {

    /* 根据 微信unionId 获取用户缓存 uid */
    public static String uidByUnion(Object unionId) {
        return String.format("UserUnid:%s",unionId);
    }

    /* 根据 uid 获取用户缓存 userinfo */
    public static String userInfoByUid(Object uid) {
        return String.format("UserInfo:%s",uid);
    }

    /* 根据 mcode 获取用户缓存 userinfo */
    public static String userIdByMcode(Object mcode) {
        return String.format("UserMcode:%s",mcode);
    }
}
